/**
 * 
 */
package com.mvc.service.xt.impl;

import java.util.List;
import java.util.Map;

import org.huangqj.consant.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mvc.dao.BaseDaoI;
import com.mvc.model.xt.Doctor;
import com.mvc.service.xt.DoctorService;

/**
 * 医生信息接口实现类
 * @author qingjie
 * @see com.service.DoctorService#getDoctor(com.vo.DoctorBean)
 * Date:2015-09-19 0:58am
 */
@Service
public class DoctorServiceImpl implements DoctorService {
	
	@Autowired
	private BaseDaoI<Doctor> dBaseDaoI;

	@Override
	public List<Doctor> findDoctors(Doctor doctor) {
		Map<String, Object> params = StringUtils.beanToMap(doctor);
		return dBaseDaoI.find(StringUtils.getHql("Doctor", params, ""), params);
	}
	
	
}
